package com.editso.haier;

import com.editso.haier.listener.ApplicationEvent;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.annotation.PropertySource;


@SpringBootApplication
@PropertySource(value = {
        "classpath:config.properties",
        "file:config.properties"
}, ignoreResourceNotFound = true)
public class Haier {
    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(Haier.class);
        application.addListeners(new ApplicationEvent());
        application.run();
    }
}